import request from "@/utils/request";
// 调用权限
export default {
  getList(data) {
    return request({
      url: "/api/comset/",
      method: "get",
      params: data
    });
  },
  getDetailInfoById(id) {
    return request({
      url: "/api/comset/" + id + "/",
      method: "get"
    });
  },
  toAdd(data) {
    return request({
      url: "/api/comset/",
      method: "post",
      data
    });
  },
  toDelete(id) {
    return request({
      url: "/api/comset/" + id + "/",
      method: "delete"
    });
  },
  toEdit(id,data) {
    return request({
      url: "/api/comset/" + id + "/",
      method: "put",
      data
    });
  },
  getCategorySimple(data) {
    return request({
      url: "/api/comset/simple/",
      method: "get",
      params:data
    });
  },

};
